/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import simulation.Distribution;
import simulation.Exponential;

/**
 *
 * @author gravena
 */
public abstract class DistributionFactory {
    public static Distribution getInstance(String dist, double param[]) {
        if(dist == null) {
            return null;
        } else if(dist.contains("Exponential")) {
            return new Exponential(param[0]);
        } else {
            return null;
        }
    }
}
